package com.morristaedt.mirror;

import android.app.Application;

import com.iflytek.cloud.SpeechConstant;
import com.iflytek.cloud.SpeechUtility;


/**
 * Created by HannahMitt on 8/22/15.
 */
public class MirrorApplication extends Application {


    private static MirrorApplication sInstance;

    public MirrorApplication() {
        sInstance = this;
    }

    public static MirrorApplication getInstance() {
        return sInstance;
    }

    @Override
    public void onCreate() {
        super.onCreate();

        // 语音唤醒
        StringBuffer param = new StringBuffer();
        param.append("appid="+getString(R.string.app_id));
        param.append(",");
        // 设置使用v5+
        param.append(SpeechConstant.ENGINE_MODE+"="+SpeechConstant.MODE_MSC);
        SpeechUtility.createUtility(this, param.toString());
    }



}
